Emacs should work with glibc 2.24 on ppc64
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 15 Jul 2016 11:07:09 +0000 (13:07 +0200)
committerRob Browning <rlb@defaultvalue.org>
Mon, 5 Sep 2016 19:42:15 +0000 (14:42 -0500)
commit3a838494fc769f1ae39adf20325869331f0c300d
treeff5db1cef62b2257882de9831f182782dd3d350a
parentf07b5081dc17404b73acfc9da576d9746d276b7a
Emacs should work with glibc 2.24 on ppc64

This patch, backported from upstream by Aurelien Jarno
<aurel32@debian.org>, has been added:

  Port to glibc 2.24 (pre-release) + ppc64

  Inspired by a suggestion by Florian Weimer in:
  https://sourceware.org/ml/libc-alpha/2016-07/msg00425.html
  * configure.ac (HAVE_PERSONALITY_ADDR_NO_RANDOMIZE):
  Rename from HAVE_PERSONALITY_LINUX32, and check for
  ADDR_NO_RANDOMIZE (the crucial thing) instead of for LINUX32.
  All uses changed.
  * src/emacs.c (main) [HAVE_PERSONALITY_ADDR_NO_RANDOMIZE]:
  Use ADDR_NO_RANDOMIZE from personality.h rather than inventing the
  flag ourselves.  Just set that flag, rather than also setting the
  persona.  When doing it, avoid functions like putenv that may
  allocate memory.

Origin: backport, commit: e95b023163e96538b15f030b7176b7ec59cf86f5
Bug-Debian: http://bugs.debian.org/833727
Added-by: Rob Browning <rlb@defaultvalue.org>
admin/CPP-DEFINES
configure.ac
src/emacs.c